[Webkit-unassigned] [Bug 126605] New: DOM serialization: < and > should not be quoted in HTML attribute values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 7 16:53:38 PST 2014


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

           Summary: DOM serialization: < and > should not be quoted in
                    HTML attribute values
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: http://jsbin.com/IkAnEJEY/1/
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: costan at gmail.com


== What steps will reproduce the problem?

1. Open the document and look at the attribute serialization in the HTML output and XML output.

== What is the expected result?

The HTML serialization should contain "< >" instead of "< >".

== What happens instead?

< and > in the attribute value are incorrectly escaped during serialization.

In the HTML case, the DOM parsing and serialization specification defers to the HTML specification: http://www.w3.org/html/wg/drafts/html/master/syntax.html#attribute's-serialized-name

Steps 1-3 under the "Escaping a string" heading are relevant to attributes.

== Please provide any additional information below.

Firefox, IE and Chromium do not quote < and >. The fix happened pretty recently in Chromium, so it only shows up in Canary builds.

I will prepare a patch for this bug soon.

-- 
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