DescriptionMake DOMImplementation.createHTMLDocument implementation more spec aligned
According to specification, if the title argument is not omitted:
*)Create a title element in the HTML namespace,
and append it to the head element created in the previous step.
*)Create a Text node, set its data to title (which could be the empty string),
and append it to the title element created in the previous step.
spec: http://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
So this CL modified implementation from setTitle to create and append.
TEST=LayoutTests/fast/dom/implementation-createHTMLDocument.html
Additionally, with this CL, DOMImplementation.createHTMLDocument test
at http://w3c-test.org/dom/nodes/DOMImplementation-createHTMLDocument.html
will be passed.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177379
Patch Set 1 #
Total comments: 4
Patch Set 2 : Take review comment into consideration #
Total comments: 2
Messages
Total messages: 13 (0 generated)
|