[webkit-dev] Bad Qt API?

Eric Seidel eric at webkit.org
Wed Aug 25 11:46:59 PDT 2010

    Encloses the contents of this element with the result of parsing \a markup.
    This element becomes the child of the deepest descendant within \a markup.

    \sa encloseWith()
void QWebElement::encloseContentsWith(const QString &markup)


These enclose methods use at least 2 deprecated parts of parser code
(HTMLElement::endTagRequirement() and

They're clear layering violations, and make little sense to me.

Who wants to call this API?  Can it be removed from Qt?


More information about the webkit-dev mailing list