[webkit-help] Fwd: Disable the automated markup fixes
Ryosuke Niwa
rniwa at webkit.org
Tue Apr 2 20:14:13 PDT 2013
On Tue, Apr 2, 2013 at 7:27 PM, Aaron Lewis <the.warl0ck.1989 at gmail.com>wrote:
> I'm running a test app with QtWebkit, looks like webkit is attempting
> to fix invalid markups automatically,
>
> For page contents like this,
>
> <body><><br/><></body>
>
> The first <> is considered invalid if refer to W3C standards, thus
> webkit would encode it to <>
>
> Can this feature be turned off?
>
> As Ben pointed out, I should be modifying the HTML5 Parser, so where
> should I start?
>
HTMLTokenizer.cpp and HTMLTreeBuilder.cpp in Source/WebCore/html/parser/
are two files you want to look into. However, I strongly advice you not to
modify the parser as that can easily lead to all sorts of bugs including
security vulnerabilities.
- R. Niwa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20130402/b2f6595e/attachment.html>
More information about the webkit-help
mailing list