Changeset 24146 in webkit
- Timestamp:
- Jul 10, 2007 2:21:47 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r24129 r24146 1 2007-07-10 Rob Buis <buis@kde.org> 2 3 Reviewed by Maciej. 4 5 Testcase for: 6 http://bugs.webkit.org/show_bug.cgi?id=8007 7 createElement() and XHTML (A dynamically created table not rendered as such) 8 9 SVG tests are changed to use createElementNS instead of createElement. 10 Other test results match FF2 results, except replace-child.html and 11 nodeisdefaultnamespace09.xhtml. 12 13 * dom/xhtml/level1/core/hc_documentcreateelementcasesensitive-expected.txt: 14 * dom/xhtml/level2/html/HTMLSelectElement18-expected.txt: 15 * dom/xhtml/level2/html/HTMLSelectElement19-expected.txt: 16 * dom/xhtml/level2/html/HTMLSelectElement20-expected.txt: 17 * dom/xhtml/level2/html/HTMLTableElement31-expected.txt: 18 * dom/xhtml/level3/core/nodeisdefaultnamespace09-expected.txt: 19 * dom/xhtml/level3/core/nodelookupprefix10-expected.txt: 20 * fast/css/create_element_align-expected.checksum: Added. 21 * fast/css/create_element_align-expected.png: Added. 22 * fast/css/create_element_align-expected.txt: Added. 23 * fast/css/create_element_align.xhtml: Added. 24 * fast/dom/Document/replace-child-expected.txt: 25 * fast/dom/createElement-expected.txt: Added. 26 * fast/dom/createElement.html: Added. 27 * svg/custom/createelement-expected.txt: 28 * svg/custom/createelement.svg: 29 * svg/custom/js-late-clipPath-and-object-creation.svg: 30 * svg/custom/js-late-clipPath-creation.svg: 31 * svg/custom/js-late-gradient-and-object-creation.svg: 32 * svg/custom/js-late-gradient-creation.svg: 33 * svg/custom/js-late-marker-and-object-creation.svg: 34 * svg/custom/js-late-marker-creation.svg: 35 * svg/custom/js-late-mask-and-object-creation.svg: 36 * svg/custom/js-late-mask-creation.svg: 37 * svg/custom/js-late-pattern-and-object-creation.svg: 38 * svg/custom/js-late-pattern-creation.svg: 39 * svg/custom/multiple-title-elements.svg: 40 * svg/custom/path-textPath-simulation.svg: 41 1 42 2007-07-09 Alice Liu <alice.liu@apple.com> 2 43 -
trunk/LayoutTests/dom/xhtml/level1/core/hc_documentcreateelementcasesensitive-expected.txt
r11962 r24146 1 1 Test http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_documentcreateelementcasesensitive 2 Status Success 2 Status failure 3 Message nodeName1: assertEquals failed, actual acronym, expected ACRONYM. -
trunk/LayoutTests/dom/xhtml/level2/html/HTMLSelectElement18-expected.txt
r21687 r24146 1 1 Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLSelectElement18 2 Status failure 3 Message optLength: assertEquals failed, actual 5, expected 6. 2 Status Success -
trunk/LayoutTests/dom/xhtml/level2/html/HTMLSelectElement19-expected.txt
r21687 r24146 1 1 Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLSelectElement19 2 Status failure 3 Message optLength: assertEquals failed, actual 5, expected 6. 2 Status Success -
trunk/LayoutTests/dom/xhtml/level2/html/HTMLSelectElement20-expected.txt
r21687 r24146 1 1 Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLSelectElement20 2 Status failure 3 Message throw_NOT_FOUND_ERR: assertTrue failed 2 Status Success -
trunk/LayoutTests/dom/xhtml/level2/html/HTMLTableElement31-expected.txt
r21687 r24146 1 1 Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLTableElement31 2 Status error 3 Message TypeError: Undefined value 2 Status Success -
trunk/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace09-expected.txt
r11962 r24146 1 1 Test http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeisdefaultnamespace09 2 Status Success 2 Status failure 3 Message nodeisdefaultnamespace09_2: assertTrue failed -
trunk/LayoutTests/dom/xhtml/level3/core/nodelookupprefix10-expected.txt
r11962 r24146 1 1 Test http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodelookupprefix10 2 Status Success 2 Status failure 3 Message nodelookupprefix10: assertEquals failed, actual null, expected dom3. -
trunk/LayoutTests/fast/dom/Document/replace-child-expected.txt
r21687 r24146 1 1 This tests that various combinations of replaceChild on the document works as specified. If this test succeeds, there will be a number of "SUCCESS" lines below followed by "SUCCESS - All tests succeeded". 2 2 replacing element with element 3 SUCCESS: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><bar />3 SUCCESS: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><bar xmlns="http://www.w3.org/1999/xhtml"></bar> 4 4 replacing element with doctype 5 5 SUCCESS: <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> -
trunk/LayoutTests/svg/custom/createelement-expected.txt
r18264 r24146 1 CONSOLE MESSAGE: line 13: TypeError: Null value 1 2 layer at (0,0) size 800x600 2 3 RenderView at (0,0) size 800x600 3 RenderSVGContainer {svg} at (0,0) size 363x124 4 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"] 5 RenderSVGText {text} at (10,120) size 800x18 6 RenderSVGInlineText {#text} at (0,-14) size 353x18 7 text run at (0,-14) width 353: "namespace of created rect: http://www.w3.org/2000/svg" 4 RenderSVGContainer {svg} at (0,0) size 100x100 8 5 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"] 6 RenderSVGText {text} at (10,120) size 800x0 -
trunk/LayoutTests/svg/custom/createelement.svg
r16575 r24146 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <svg xmlns="http://www.w3.org/2000/svg"> 3 <rect id="red" width="100" height="100" fill=" red" />3 <rect id="red" width="100" height="100" fill="green" /> 4 4 <text id="text" x="10" y="120"></text> 5 5 <script type="text/javascript"> 6 6 <![CDATA[ 7 var red = document.getElementById('red');7 var green = document.getElementById('green'); 8 8 // Note the use of createElement instead of createElementNS 9 var green= document.createElement("rect");10 // DOM 3 core says the namespaceURI must be null:11 // http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/DOM3-Core.html#core-ID-214174154712 // but setting it to http://www.w3.org/2000/svg (like html does) is more in line with what web authors will expect.9 var red = document.createElement("rect"); 10 // HTML5 says createElement should lowercase the name and create it in the 11 // xhtml namespace. This means the created element is not an SVG element 12 // and therefore can't be appended to a SVG element. 13 13 green.setAttribute("width", "100"); 14 14 green.setAttribute("height", "100"); 15 green.setAttribute("fill", " green");16 red.ownerDocument.rootElement.appendChild(green);15 green.setAttribute("fill", "red"); 16 green.ownerDocument.rootElement.appendChild(red); 17 17 document.getElementById('text').textContent = "namespace of created rect: " + green.namespaceURI; 18 18 ]]> -
trunk/LayoutTests/svg/custom/js-late-clipPath-and-object-creation.svg
r19050 r24146 8 8 function createObject() 9 9 { 10 var text = document.createElement ("text");10 var text = document.createElementNS("http://www.w3.org/2000/svg", "text"); 11 11 text.setAttribute("font-size", "60"); 12 12 text.setAttribute("fill", "navy"); … … 23 23 createObject(); 24 24 25 var clipPath = document.createElement ("clipPath");25 var clipPath = document.createElementNS("http://www.w3.org/2000/svg", "clipPath"); 26 26 clipPath.setAttribute("id", "dynClip"); 27 27 clipPath.setAttribute("clipPathUnits", "userSpaceOnUse"); 28 28 29 var path = document.createElement ("path");29 var path = document.createElementNS("http://www.w3.org/2000/svg", "path"); 30 30 path.setAttribute("d", "M 0 0 l 200 0 l 0 200 l -200 0 Z"); 31 31 -
trunk/LayoutTests/svg/custom/js-late-clipPath-creation.svg
r19050 r24146 10 10 function createClipPath() 11 11 { 12 var clipPath = document.createElement ("clipPath");12 var clipPath = document.createElementNS("http://www.w3.org/2000/svg", "clipPath"); 13 13 clipPath.setAttribute("id", "dynClip"); 14 14 clipPath.setAttribute("clipPathUnits", "userSpaceOnUse"); 15 15 16 var path = document.createElement ("path");16 var path = document.createElementNS("http://www.w3.org/2000/svg", "path"); 17 17 path.setAttribute("d", "M 0 0 l 200 0 l 0 200 l -200 0 Z"); 18 18 -
trunk/LayoutTests/svg/custom/js-late-gradient-and-object-creation.svg
r18421 r24146 10 10 { 11 11 // Setup "fillLinearGradient" 12 var gradient1 = document.createElement ("linearGradient");12 var gradient1 = document.createElementNS("http://www.w3.org/2000/svg", "linearGradient"); 13 13 gradient1.setAttribute("id", "fillLinearGradient"); 14 14 gradient1.setAttribute("x1", "0"); 15 15 gradient1.setAttribute("x2", "1"); 16 16 17 var stop11 = document.createElement ("stop");17 var stop11 = document.createElementNS("http://www.w3.org/2000/svg", "stop"); 18 18 stop11.setAttribute("stop-color", "blue"); 19 19 stop11.setAttribute("offset", "0"); 20 20 21 var stop21 = document.createElement ("stop");21 var stop21 = document.createElementNS("http://www.w3.org/2000/svg", "stop"); 22 22 stop21.setAttribute("stop-color", "red"); 23 23 stop21.setAttribute("offset", "1"); … … 29 29 30 30 // Setup "strokeLinearGradient" 31 var gradient2 = document.createElement ("linearGradient");31 var gradient2 = document.createElementNS("http://www.w3.org/2000/svg", "linearGradient"); 32 32 gradient2.setAttribute("id", "strokeLinearGradient"); 33 33 gradient2.setAttribute("x1", "0"); 34 34 gradient2.setAttribute("x2", "1"); 35 35 36 var stop22 = document.createElement ("stop");36 var stop22 = document.createElementNS("http://www.w3.org/2000/svg", "stop"); 37 37 stop22.setAttribute("stop-color", "yellow"); 38 38 stop22.setAttribute("offset", "0"); 39 39 40 var stop22 = document.createElement ("stop");40 var stop22 = document.createElementNS("http://www.w3.org/2000/svg", "stop"); 41 41 stop22.setAttribute("stop-color", "green"); 42 42 stop22.setAttribute("offset", "1"); … … 52 52 function setupGradientUsers() 53 53 { 54 var text1 = document.createElement ("text");54 var text1 = document.createElementNS("http://www.w3.org/2000/svg", "text"); 55 55 text1.setAttribute("font-size", "68"); 56 56 text1.setAttribute("x", "-150"); … … 62 62 content.appendChild(text1); 63 63 64 var text2 = document.createElement ("text");64 var text2 = document.createElementNS("http://www.w3.org/2000/svg", "text"); 65 65 text2.setAttribute("font-size", "68"); 66 66 text2.setAttribute("x", "-150"); … … 72 72 content.appendChild(text2); 73 73 74 var text3 = document.createElement ("text");74 var text3 = document.createElementNS("http://www.w3.org/2000/svg", "text"); 75 75 text3.setAttribute("font-size", "68"); 76 76 text3.setAttribute("x", "-150"); -
trunk/LayoutTests/svg/custom/js-late-gradient-creation.svg
r18421 r24146 10 10 function createGradient() 11 11 { 12 var gradient = document.createElement ("linearGradient");12 var gradient = document.createElementNS("http://www.w3.org/2000/svg", "linearGradient"); 13 13 gradient.setAttribute("id", "dynGrad"); 14 14 gradient.setAttribute("x1", "0"); 15 15 gradient.setAttribute("x2", "1"); 16 16 17 var stop1 = document.createElement ("stop");17 var stop1 = document.createElementNS("http://www.w3.org/2000/svg", "stop"); 18 18 stop1.setAttribute("stop-color", "blue"); 19 19 stop1.setAttribute("offset", "0"); 20 20 21 var stop2 = document.createElement ("stop");21 var stop2 = document.createElementNS("http://www.w3.org/2000/svg", "stop"); 22 22 stop2.setAttribute("stop-color", "red"); 23 23 stop2.setAttribute("offset", "1"); -
trunk/LayoutTests/svg/custom/js-late-marker-and-object-creation.svg
r19050 r24146 19 19 function createObject() 20 20 { 21 var path = document.createElement ("path");21 var path = document.createElementNS("http://www.w3.org/2000/svg", "path"); 22 22 path.setAttribute("fill", "none"); 23 23 path.setAttribute("stroke", "black"); … … 35 35 createObject(); 36 36 37 var marker = document.createElement ("marker");37 var marker = document.createElementNS("http://www.w3.org/2000/svg", "marker"); 38 38 marker.setAttribute("id", "markerMiddle"); 39 39 marker.setAttribute("viewBox", "0 0 10 10"); … … 44 44 marker.setAttribute("markerUnits", "strokeWidth"); 45 45 46 var circle = document.createElement ("circle");46 var circle = document.createElementNS("http://www.w3.org/2000/svg", "circle"); 47 47 circle.setAttribute("cx", "5"); 48 48 circle.setAttribute("cy", "5"); -
trunk/LayoutTests/svg/custom/js-late-marker-creation.svg
r19050 r24146 19 19 function createMarker() 20 20 { 21 var marker = document.createElement ("marker");21 var marker = document.createElementNS("http://www.w3.org/2000/svg", "marker"); 22 22 marker.setAttribute("id", "markerMiddle"); 23 23 marker.setAttribute("viewBox", "0 0 10 10"); … … 28 28 marker.setAttribute("markerUnits", "strokeWidth"); 29 29 30 var circle = document.createElement ("circle");30 var circle = document.createElementNS("http://www.w3.org/2000/svg", "circle"); 31 31 circle.setAttribute("cx", "5"); 32 32 circle.setAttribute("cy", "5"); -
trunk/LayoutTests/svg/custom/js-late-mask-and-object-creation.svg
r19050 r24146 10 10 function createObject() 11 11 { 12 var rect = document.createElement ("rect");12 var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect"); 13 13 rect.setAttribute("width", "800"); 14 14 rect.setAttribute("height", "100"); … … 24 24 createObject(); 25 25 26 var mask = document.createElement ("mask");26 var mask = document.createElementNS("http://www.w3.org/2000/svg", "mask"); 27 27 mask.setAttribute("id", "dynMask"); 28 28 mask.setAttribute("maskUnits", "userSpaceOnUse"); … … 32 32 mask.setAttribute("height", "300"); 33 33 34 var rect = document.createElement ("rect");34 var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect"); 35 35 rect.setAttribute("width", "800"); 36 36 rect.setAttribute("height", "300"); -
trunk/LayoutTests/svg/custom/js-late-mask-creation.svg
r19050 r24146 11 11 function createMask() 12 12 { 13 var mask = document.createElement ("mask");13 var mask = document.createElementNS("http://www.w3.org/2000/svg", "mask"); 14 14 mask.setAttribute("id", "dynMask"); 15 15 mask.setAttribute("maskUnits", "userSpaceOnUse"); … … 19 19 mask.setAttribute("height", "300"); 20 20 21 var rect = document.createElement ("rect");21 var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect"); 22 22 rect.setAttribute("width", "800"); 23 23 rect.setAttribute("height", "300"); -
trunk/LayoutTests/svg/custom/js-late-pattern-and-object-creation.svg
r18521 r24146 10 10 { 11 11 // Setup "fillPattern" 12 var pattern1 = document.createElement ("pattern");12 var pattern1 = document.createElementNS("http://www.w3.org/2000/svg", "pattern"); 13 13 pattern1.setAttribute("id", "fillPattern"); 14 14 pattern1.setAttribute("patternUnits", "userSpaceOnUse"); … … 18 18 pattern1.setAttribute("height", "20"); 19 19 20 var rect11 = document.createElement ("rect");20 var rect11 = document.createElementNS("http://www.w3.org/2000/svg", "rect"); 21 21 rect11.setAttribute("x", "5"); 22 22 rect11.setAttribute("y", "5"); … … 25 25 rect11.setAttribute("fill", "red"); 26 26 27 var rect21 = document.createElement ("rect");27 var rect21 = document.createElementNS("http://www.w3.org/2000/svg", "rect"); 28 28 rect21.setAttribute("x", "10"); 29 29 rect21.setAttribute("y", "10"); … … 38 38 39 39 // Setup "strokePattern" 40 var pattern2 = document.createElement ("pattern");40 var pattern2 = document.createElementNS("http://www.w3.org/2000/svg", "pattern"); 41 41 pattern2.setAttribute("id", "strokePattern"); 42 42 pattern2.setAttribute("patternUnits", "userSpaceOnUse"); … … 46 46 pattern2.setAttribute("height", "20"); 47 47 48 var rect12 = document.createElement ("rect");48 var rect12 = document.createElementNS("http://www.w3.org/2000/svg", "rect"); 49 49 rect12.setAttribute("x", "5"); 50 50 rect12.setAttribute("y", "5"); … … 53 53 rect12.setAttribute("fill", "yellow"); 54 54 55 var rect22 = document.createElement ("rect");55 var rect22 = document.createElementNS("http://www.w3.org/2000/svg", "rect"); 56 56 rect22.setAttribute("x", "10"); 57 57 rect22.setAttribute("y", "10"); … … 70 70 function setupPatternUsers() 71 71 { 72 var text1 = document.createElement ("text");72 var text1 = document.createElementNS("http://www.w3.org/2000/svg", "text"); 73 73 text1.setAttribute("font-size", "68"); 74 74 text1.setAttribute("x", "-150"); … … 80 80 content.appendChild(text1); 81 81 82 var text2 = document.createElement ("text");82 var text2 = document.createElementNS("http://www.w3.org/2000/svg", "text"); 83 83 text2.setAttribute("font-size", "68"); 84 84 text2.setAttribute("x", "-150"); … … 90 90 content.appendChild(text2); 91 91 92 var text3 = document.createElement ("text");92 var text3 = document.createElementNS("http://www.w3.org/2000/svg", "text"); 93 93 text3.setAttribute("font-size", "68"); 94 94 text3.setAttribute("x", "-150"); -
trunk/LayoutTests/svg/custom/js-late-pattern-creation.svg
r18521 r24146 10 10 function createPattern() 11 11 { 12 var pattern = document.createElement ("pattern");12 var pattern = document.createElementNS("http://www.w3.org/2000/svg", "pattern"); 13 13 pattern.setAttribute("id", "dynPattern"); 14 14 pattern.setAttribute("patternUnits", "userSpaceOnUse"); … … 18 18 pattern.setAttribute("height", "20"); 19 19 20 var rect1 = document.createElement ("rect");20 var rect1 = document.createElementNS("http://www.w3.org/2000/svg", "rect"); 21 21 rect1.setAttribute("x", "5"); 22 22 rect1.setAttribute("y", "5"); … … 25 25 rect1.setAttribute("fill", "red"); 26 26 27 var rect2 = document.createElement ("rect");27 var rect2 = document.createElementNS("http://www.w3.org/2000/svg", "rect"); 28 28 rect2.setAttribute("x", "10"); 29 29 rect2.setAttribute("y", "10"); -
trunk/LayoutTests/svg/custom/multiple-title-elements.svg
r19070 r24146 10 10 function log(message) 11 11 { 12 var t = document.createElement ("text");12 var t = document.createElementNS("http://www.w3.org/2000/svg", "text"); 13 13 t.appendChild(document.createTextNode(message)); 14 14 t.setAttribute('y', logOffset); … … 29 29 function createTitleElement(title) 30 30 { 31 var t = document.createElement ('title');31 var t = document.createElementNS("http://www.w3.org/2000/svg", 'title'); 32 32 t.appendChild(document.createTextNode(title)); 33 33 return t; -
trunk/LayoutTests/svg/custom/path-textPath-simulation.svg
r19970 r24146 18 18 var lastPoint = path.getPointAtLength(1.0 * totalLength); 19 19 20 var text1 = document.createElement ("text");20 var text1 = document.createElementNS("http://www.w3.org/2000/svg", "text"); 21 21 text1.appendChild(document.createTextNode("A")); 22 22 text1.setAttribute("x", firstPoint.x); 23 23 text1.setAttribute("y", firstPoint.y); 24 24 25 var text2 = document.createElement ("text");25 var text2 = document.createElementNS("http://www.w3.org/2000/svg", "text"); 26 26 text2.appendChild(document.createTextNode("B")); 27 27 text2.setAttribute("x", midPoint.x); 28 28 text2.setAttribute("y", midPoint.y); 29 29 30 var text3 = document.createElement ("text");30 var text3 = document.createElementNS("http://www.w3.org/2000/svg", "text"); 31 31 text3.appendChild(document.createTextNode("C")); 32 32 text3.setAttribute("x", lastPoint.x); -
trunk/WebCore/ChangeLog
r24131 r24146 1 2007-07-10 Rob Buis <buis@kde.org> 2 3 Reviewed by Maciej. 4 5 http://bugs.webkit.org/show_bug.cgi?id=8007 6 createElement() and XHTML (A dynamically created table not rendered as such) 7 8 Follow the HTML5 rules of making the name lowercase and then 9 creating the element in the xhtml namespace. 10 11 * dom/Document.cpp: 12 (WebCore::Document::createElement): 13 * dom/Document.h: 14 * html/HTMLDocument.cpp: 15 * html/HTMLDocument.h: 16 1 17 2007-07-09 Qing Zhao <qing@staikos.net> 2 18 -
trunk/WebCore/dom/Document.cpp
r24122 r24146 466 466 PassRefPtr<Element> Document::createElement(const String &name, ExceptionCode& ec) 467 467 { 468 return createElementNS(nullAtom, name, ec); 468 String lowerName(name.lower()); 469 if (!isValidName(lowerName)) { 470 ec = INVALID_CHARACTER_ERR; 471 return 0; 472 } 473 return HTMLElementFactory::createHTMLElement(AtomicString(lowerName), this, 0, false); 469 474 } 470 475 -
trunk/WebCore/dom/Document.h
r24055 r24146 161 161 virtual void childrenChanged(); 162 162 Element* documentElement() const; 163 virtualPassRefPtr<Element> createElement(const String& tagName, ExceptionCode&);163 PassRefPtr<Element> createElement(const String& tagName, ExceptionCode&); 164 164 PassRefPtr<DocumentFragment> createDocumentFragment (); 165 165 PassRefPtr<Text> createTextNode(const String& data); -
trunk/WebCore/html/HTMLDocument.cpp
r23906 r24146 65 65 #include "HTMLBodyElement.h" 66 66 #include "HTMLElement.h" 67 #include "HTMLElementFactory.h"68 67 #include "HTMLNames.h" 69 68 #include "HTMLTokenizer.h" … … 301 300 { 302 301 return newChild->hasTagName(htmlTag); 303 }304 305 PassRefPtr<Element> HTMLDocument::createElement(const String &name, ExceptionCode& ec)306 {307 String lowerName(name.lower());308 if (!isValidName(lowerName)) {309 ec = INVALID_CHARACTER_ERR;310 return 0;311 }312 return HTMLElementFactory::createHTMLElement(AtomicString(lowerName), this, 0, false);313 302 } 314 303 -
trunk/WebCore/html/HTMLDocument.h
r21681 r24146 72 72 virtual bool childAllowed(Node*); 73 73 74 virtual PassRefPtr<Element> createElement(const String& tagName, ExceptionCode&);75 76 74 virtual void determineParseMode(const String&); 77 75
Note: See TracChangeset
for help on using the changeset viewer.