Lines Matching refs:Element
108 XMLTokenizer::XMLTokenizer(DocumentFragment* fragment, Element* parentElement, FragmentScriptingPermission permission)
137 Vector<Element*> elemStack;
144 parentElement = static_cast<Element*>(n);
151 for (Element* element = elemStack.last(); !elemStack.isEmpty(); elemStack.removeLast()) {
152 if (NamedNodeMap* attrs = element->attributes()) {
165 // If the parent element is not in document tree, there may be no xmlns attribute; just default to the parent's namespace.
261 bool parseXMLDocumentFragment(const String& chunk, DocumentFragment* fragment, Element* parent, FragmentScriptingPermission scriptingPermission)
326 static inline void handleElementNamespaces(Element* newElement, const QXmlStreamNamespaceDeclarations &ns,
339 static inline void handleElementAttributes(Element* newElement, const QXmlStreamAttributes &attrs, ExceptionCode& ec,
462 // skip dummy element for fragments
479 RefPtr<Element> newElement = m_doc->createElement(qName, true);
488 // we should make sure that the root element MUST be 'html' and
492 handleError(fatal, "XHTMLMP document expects 'html' as root element.", lineNumber(), columnNumber());
544 if (m_scriptingPermission == FragmentScriptingNotAllowed && n->isElementNode() && toScriptElement(static_cast<Element*>(n))) {
557 Element* element = static_cast<Element*>(n);
559 // The element's parent may have already been removed from document.
561 if (!element->inDocument()) {
566 ScriptElement* scriptElement = toScriptElement(element);
586 if (element->dispatchBeforeLoadEvent(scriptHref) &&
588 m_scriptElement = element;
695 handleError(fatal, "Invalid DOCTYPE declaration, expected 'html' as root element.", lineNumber(), columnNumber());