Changeset 204114 in webkit
- Timestamp:
- Aug 3, 2016, 10:11:26 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 15 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/dom/historical-expected.txt (modified) (1 diff)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/inspector/protocol/DOM.json (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/bindings/objc/DOMDocumentType.mm (modified) (1 diff)
-
Source/WebCore/dom/DocumentType.h (modified) (2 diffs)
-
Source/WebCore/dom/DocumentType.idl (modified) (2 diffs)
-
Source/WebCore/dom/Node.cpp (modified) (1 diff)
-
Source/WebCore/editing/MarkupAccumulator.cpp (modified) (1 diff)
-
Source/WebCore/inspector/InspectorDOMAgent.cpp (modified) (1 diff)
-
Source/WebInspectorUI/ChangeLog (modified) (1 diff)
-
Source/WebInspectorUI/UserInterface/Models/DOMNode.js (modified) (1 diff)
-
Source/WebInspectorUI/UserInterface/Models/DOMSearchMatchObject.js (modified) (1 diff)
-
Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r204113 r204114 1 2016-08-03 Chris Dumez <cdumez@apple.com> 2 3 Drop DocumentType.internalSubset attribute 4 https://bugs.webkit.org/show_bug.cgi?id=160530 5 6 Reviewed by Alex Christensen. 7 8 Rebaseline W3C test now that one more check is passing. 9 10 * web-platform-tests/dom/historical-expected.txt: 11 1 12 2016-08-03 Chris Dumez <cdumez@apple.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/historical-expected.txt
r204113 r204114 43 43 PASS DocumentType member must be nuked: entities 44 44 PASS DocumentType member must be nuked: notations 45 FAIL DocumentType member must be nuked: internalSubset assert_equals: expected (undefined) undefined but got (object) null 45 PASS DocumentType member must be nuked: internalSubset 46 46 PASS Text member must be nuked: isElementContentWhitespace 47 47 FAIL Text member must be nuked: replaceWholeText assert_equals: expected (undefined) undefined but got (function) function "function replaceWholeText() { -
trunk/Source/JavaScriptCore/ChangeLog
r204112 r204114 1 2016-08-03 Chris Dumez <cdumez@apple.com> 2 3 Drop DocumentType.internalSubset attribute 4 https://bugs.webkit.org/show_bug.cgi?id=160530 5 6 Reviewed by Alex Christensen. 7 8 Drop DocumentType.internalSubset attribute. 9 10 * inspector/protocol/DOM.json: 11 1 12 2016-08-03 Benjamin Poulain <bpoulain@apple.com> 2 13 -
trunk/Source/JavaScriptCore/inspector/protocol/DOM.json
r202634 r204114 48 48 { "name": "publicId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s publicId." }, 49 49 { "name": "systemId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s systemId." }, 50 { "name": "internalSubset", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s internalSubset." },51 50 { "name": "xmlVersion", "type": "string", "optional": true, "description": "<code>Document</code>'s XML version in case of XML documents." }, 52 51 { "name": "name", "type": "string", "optional": true, "description": "<code>Attr</code>'s name." }, -
trunk/Source/WebCore/ChangeLog
r204113 r204114 1 2016-08-03 Chris Dumez <cdumez@apple.com> 2 3 Drop DocumentType.internalSubset attribute 4 https://bugs.webkit.org/show_bug.cgi?id=160530 5 6 Reviewed by Alex Christensen. 7 8 Drop DocumentType.internalSubset attribute. 9 10 It is no longer in the DOM specification: 11 - https://dom.spec.whatwg.org/#documenttype 12 - https://w3c.github.io/DOM-Parsing/#xml-serializing-a-documenttype-node 13 14 Other browsers have already dropped it. In WebKit, it was always null 15 anyway. 16 17 No new tests, rebaselined existing test. 18 19 * bindings/objc/DOMDocumentType.mm: 20 (-[DOMDocumentType internalSubset]): 21 * dom/DocumentType.h: 22 * dom/DocumentType.idl: 23 * dom/Node.cpp: 24 (WebCore::Node::isEqualNode): Deleted. 25 * editing/MarkupAccumulator.cpp: 26 (WebCore::MarkupAccumulator::appendDocumentType): Deleted. 27 * inspector/InspectorDOMAgent.cpp: 28 (WebCore::InspectorDOMAgent::buildObjectForNode): Deleted. 29 1 30 2016-08-03 Chris Dumez <cdumez@apple.com> 2 31 -
trunk/Source/WebCore/bindings/objc/DOMDocumentType.mm
r204083 r204114 75 75 { 76 76 WebCore::JSMainThreadNullState state; 77 return IMPL->internalSubset ();77 return IMPL->internalSubsetForBindings(); 78 78 } 79 79 -
trunk/Source/WebCore/dom/DocumentType.h
r197563 r204114 41 41 NamedNodeMap* entitiesForBindings() const { return nullptr; } 42 42 NamedNodeMap* notationsForBindings() const { return nullptr; } 43 String internalSubsetForBindings() const { return String(); } 43 44 44 45 const String& name() const { return m_name; } 45 46 const String& publicId() const { return m_publicId; } 46 47 const String& systemId() const { return m_systemId; } 47 const String& internalSubset() const { return m_subset; }48 48 49 49 private: … … 57 57 String m_publicId; 58 58 String m_systemId; 59 String m_subset;60 59 }; 61 60 -
trunk/Source/WebCore/dom/DocumentType.idl
r197060 r204114 30 30 [ImplementedAs=entitiesForBindings] readonly attribute NamedNodeMap entities; 31 31 [ImplementedAs=notationsForBindings] readonly attribute NamedNodeMap notations; 32 [ImplementedAs=internalSubsetForBindings] readonly attribute DOMString? internalSubset; 32 33 #endif 33 34 … … 36 37 readonly attribute DOMString publicId; 37 38 readonly attribute DOMString systemId; 38 readonly attribute DOMString? internalSubset;39 39 }; 40 40 -
trunk/Source/WebCore/dom/Node.cpp
r203759 r204114 1227 1227 if (thisDocType.systemId() != otherDocType.systemId()) 1228 1228 return false; 1229 if (thisDocType.internalSubset() != otherDocType.internalSubset())1230 return false;1231 1229 break; 1232 1230 } -
trunk/Source/WebCore/editing/MarkupAccumulator.cpp
r203389 r204114 405 405 result.append('"'); 406 406 } 407 if (!documentType.internalSubset().isNull()) {408 result.append(' ');409 result.append('[');410 result.append(documentType.internalSubset());411 result.append(']');412 }413 407 result.append('>'); 414 408 } -
trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp
r203337 r204114 1402 1402 value->setPublicId(docType.publicId()); 1403 1403 value->setSystemId(docType.systemId()); 1404 value->setInternalSubset(docType.internalSubset());1405 1404 } else if (is<Attr>(*node)) { 1406 1405 Attr& attribute = downcast<Attr>(*node); -
trunk/Source/WebInspectorUI/ChangeLog
r204099 r204114 1 2016-08-03 Chris Dumez <cdumez@apple.com> 2 3 Drop DocumentType.internalSubset attribute 4 https://bugs.webkit.org/show_bug.cgi?id=160530 5 6 Reviewed by Alex Christensen. 7 8 Drop DocumentType.internalSubset attribute. 9 10 * UserInterface/Models/DOMNode.js: 11 (WebInspector.DOMNode): Deleted. 12 * UserInterface/Models/DOMSearchMatchObject.js: 13 (WebInspector.DOMSearchMatchObject.titleForDOMNode): Deleted. 14 * UserInterface/Views/DOMTreeElement.js: 15 (WebInspector.DOMTreeElement.prototype._nodeTitleInfo): Deleted. 16 1 17 2016-08-03 Matt Baker <mattbaker@apple.com> 2 18 -
trunk/Source/WebInspectorUI/UserInterface/Models/DOMNode.js
r202634 r204114 123 123 this.publicId = payload.publicId; 124 124 this.systemId = payload.systemId; 125 this.internalSubset = payload.internalSubset;126 125 } else if (this._nodeType === Node.DOCUMENT_NODE) { 127 126 this.documentURL = payload.documentURL; -
trunk/Source/WebInspectorUI/UserInterface/Models/DOMSearchMatchObject.js
r181769 r204114 68 68 } else if (domNode.systemId) 69 69 title += " SYSTEM \"" + domNode.systemId + "\""; 70 71 if (domNode.internalSubset)72 title += " [" + domNode.internalSubset + "]";73 70 74 71 return title + ">"; -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js
r202634 r204114 1307 1307 docTypeElement.append(" SYSTEM \"" + node.systemId + "\""); 1308 1308 1309 if (node.internalSubset)1310 docTypeElement.append(" [" + node.internalSubset + "]");1311 1312 1309 docTypeElement.append(">"); 1313 1310 break;
Note:
See TracChangeset
for help on using the changeset viewer.