[cl-who-devel] Adding support for HTML5 doctype

Chaitanya Gupta mail at chaitanyagupta.com
Wed Sep 15 09:35:54 UTC 2010


Edi Weitz wrote:
> The one in the BKNR repo, as it says on the patches page.
> 

Oops! I didn't care to look at the updated patches page.

Anyways, I have attached the updated patch. I have also changed a few 
things from the original patch:

* Using HTML5's HTML syntax[1] instead of XHTML syntax -- this is 
required if <!DOCTYPE html> is used
* which means *EMPTY-TAG-END* is ">" and not " />" for HTML5
* Added new elements to *HTML-EMPTY-TAGS* -- from the list of void 
elements defined in the HTML5 spec[2]

Chaitanya

1. http://dev.w3.org/html5/spec/Overview.html#syntax
2. http://dev.w3.org/html5/spec/Overview.html#void-elements

> Thanks,
> Edi.
> 
> 
> On Tue, Sep 14, 2010 at 6:45 PM, Chaitanya Gupta
> <mail at chaitanyagupta.com> wrote:
>> Edi Weitz wrote:
>>> Thanks, that looks OK.  But could you please also update the
>>> docstrings and the HTML documentation?
>>>
>> Sure. However, I have noticed that the released version is not the same as
>> one that is on the bknr-svn repo. Which one should I create the patch
>> against?
>>
>> Chaitanya
>>
>>> http://weitz.de/patches.html
>>>
>>> Thanks,
>>> Edi.
>>>
>>> On Tue, Sep 14, 2010 at 5:45 PM, Chaitanya Gupta
>>> <mail at chaitanyagupta.com> wrote:
>>>> Hi,
>>>>
>>>> I needed to emit some HTML5 from cl-who the other day. Attached is a
>>>> patch
>>>> which adds support for an :HTML5 mode to cl-who. Essentially, it just
>>>> sends
>>>> the correct doctype.
>>>>
>>>> Hope this patch is fine.
>>>>
>>>> Chaitanya
>>>>
>>>> --
>>>> http://chaitanyagupta.com/blog/
>>>>
>>>> _______________________________________________
>>>> cl-who-devel site list
>>>> cl-who-devel at common-lisp.net
>>>> http://common-lisp.net/mailman/listinfo/cl-who-devel
>>>>
>>> _______________________________________________
>>> cl-who-devel site list
>>> cl-who-devel at common-lisp.net
>>> http://common-lisp.net/mailman/listinfo/cl-who-devel
>>>
>>
>> --
>> http://chaitanyagupta.com/blog/
>>
>>
> 


-- 
http://chaitanyagupta.com/blog/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cl-who.patch
Type: text/x-diff
Size: 5703 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cl-who-devel/attachments/20100915/9fd090ac/attachment.patch>


More information about the Cl-who-devel mailing list