| Index: third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
|
| index 9447499b7940d2471adcabfa4a3267dd7afd2db8..794b7cedd64da049c5e3a5630dec9f97d295c63d 100644
|
| --- a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
|
| @@ -649,32 +649,12 @@ static inline void removeElementPreservingChildren(DocumentFragment* fragment,
|
| fragment->removeChild(element);
|
| }
|
|
|
| -static inline bool isSupportedContainer(Element* element) {
|
| - DCHECK(element);
|
| - if (!element->isHTMLElement())
|
| - return true;
|
| -
|
| - HTMLElement& htmlElement = toHTMLElement(*element);
|
| - if (htmlElement.hasTagName(colTag) || htmlElement.hasTagName(colgroupTag) ||
|
| - htmlElement.hasTagName(framesetTag) || htmlElement.hasTagName(headTag) ||
|
| - htmlElement.hasTagName(styleTag) || htmlElement.hasTagName(titleTag)) {
|
| - return false;
|
| - }
|
| - return !htmlElement.ieForbidsInsertHTML();
|
| -}
|
| -
|
| DocumentFragment* createContextualFragment(
|
| const String& markup,
|
| Element* element,
|
| ParserContentPolicy parserContentPolicy,
|
| ExceptionState& exceptionState) {
|
| DCHECK(element);
|
| - if (!isSupportedContainer(element)) {
|
| - exceptionState.throwDOMException(
|
| - NotSupportedError, "The range's container is '" + element->localName() +
|
| - "', which is not supported.");
|
| - return nullptr;
|
| - }
|
|
|
| DocumentFragment* fragment = createFragmentForInnerOuterHTML(
|
| markup, element, parserContentPolicy, "createContextualFragment",
|
|
|