[Webkit-unassigned] [Bug 22678] HTML serialization doesn't handle boolean properties properly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 18 09:05:50 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=22678


Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW




--- Comment #10 from Alexey Proskuryakov <ap at webkit.org>  2010-06-18 09:05:49 PST ---
> However, content attributes don’t have types, to the best of my knowledge.

There is such a notion in HTML4, see the link in comment 3. Firefox (as of version 3.6.3) behavior indicates that they have it in their serialization code, too.

I think that Firefox behavior has nice traits (besides being both HTML4 and HTML5 compliant, the serialized code just looks nicer). And matching other browsers is good.

Here are some examples from Firefox:

<option selected> -> <option selected="selected">
<option selected=""> -> <option selected="selected">
<option selected="foo"> -> <option selected="foo">
<option class> -> <option class="">

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list