This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21312 - The get an attribute algorithm should say what to do if it reaches the end of the byte stream before the end of the attribute name or value is reached. Probably it aborts the algorithm with the attrib [...]
Summary: The get an attribute algorithm should say what to do if it reaches the end of...
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-16 19:56 UTC by contributor
Modified: 2013-04-23 00:05 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2013-03-16 19:56:06 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html
Multipage: http://www.whatwg.org/C#documentEncoding
Complete: http://www.whatwg.org/c#documentEncoding

Comment:
The get an attribute algorithm should say what to do if it reaches the end of
the byte stream before the end of the attribute name or value is reached.
Probably it aborts the algorithm with the attribute name or value it got so
far.

Posted from: 76.119.210.197
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
Comment 1 Ian 'Hixie' Hickson 2013-04-23 00:03:49 UTC
My intent was that "If at any point during these steps the user agent either runs out of bytes or reaches its end condition, then abort the prescan a byte stream to determine its encoding algorithm unsuccessfully." would apply to "get an attribute". I've made this clearer.
Comment 2 contributor 2013-04-23 00:05:11 UTC
Checked in as WHATWG revision r7848.
Check-in comment: Be clearer about how preparsing handles running out of bytes.
http://html5.org/tools/web-apps-tracker?from=7847&to=7848