Changeset 20066 in webkit
- Timestamp:
- Mar 8, 2007 2:00:53 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r20065 r20066 1 2007-03-08 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by harrison 4 5 <http://bugs.webkit.org/show_bug.cgi?id=13000> 6 Range.createContextualFragment is not supported 7 8 * fast/dom/Range/13000-expected.txt: Added. 9 * fast/dom/Range/13000.html: Added. 10 1 11 2007-03-08 Justin Garcia <justin.garcia@apple.com> 2 12 -
trunk/WebCore/ChangeLog
r20065 r20066 1 2007-03-08 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by harrison 4 5 <http://bugs.webkit.org/show_bug.cgi?id=13000> 6 Range.createContextualFragment is not supported 7 8 * dom/Range.cpp: 9 (WebCore::Range::createContextualFragment): The 10 "startContainer" may not be a container, if the 11 range starts inside text. In that case, look 12 to the parent of the start node for an HTMLElement. 13 1 14 2007-03-08 Justin Garcia <justin.garcia@apple.com> 2 15 -
trunk/WebCore/dom/Range.cpp
r19925 r20066 1084 1084 } 1085 1085 1086 if (! m_startContainer->isHTMLElement()) { 1086 Node* htmlElement = m_startContainer->isHTMLElement() ? m_startContainer.get() : m_startContainer->parentNode(); 1087 1088 if (!htmlElement->isHTMLElement()) { 1087 1089 ec = NOT_SUPPORTED_ERR; 1088 1090 return 0; 1089 1091 } 1090 1092 1091 RefPtr<DocumentFragment> fragment = static_cast<HTMLElement*>( m_startContainer.get())->createContextualFragment(html);1093 RefPtr<DocumentFragment> fragment = static_cast<HTMLElement*>(htmlElement)->createContextualFragment(html); 1092 1094 if (!fragment) { 1093 1095 ec = NOT_SUPPORTED_ERR;
Note: See TracChangeset
for help on using the changeset viewer.