[Webkit-unassigned] [Bug 37024] Implement value sanitization algorithms

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 23 21:34:05 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=37024





--- Comment #4 from Eric Seidel <eric at webkit.org>  2011-05-23 21:34:05 PST ---
(In reply to comment #3)
> HTML5 parser relies on value sanitization for correct behavior in this case:
> 
> <input type="text" placeholder="foo" value="
> ">
> 
> In Safari 5, the placeholder is displayed, and that's correct per HTML5. But it doesn't work in ToT - and besides, the linefeed appears as whitespace in initial value, which users are unlikely to notice when typing.

InputStreamPreprocessor is responsible for dealing with whitespace:
http://trac.webkit.org/browser/trunk/Source/WebCore/html/parser/HTMLTokenizer.h#L176

But may not apply to this case.  This may simply be bugs in HTMLInputElement::parseMappedAttribute

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list