Bug 161373 - Add HTML idioms to parse a list of whitespace-separated values
Summary: Add HTML idioms to parse a list of whitespace-separated values
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-30 01:51 PDT by Frédéric Wang (:fredw)
Modified: 2016-08-30 01:51 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric Wang (:fredw) 2016-08-30 01:51:20 PDT
See bug 161045 comment 4 where this kind of idiom was needed to parse the menclose@notation attribute:

> The way I’d want to do this is to build a class that lets you iterate
> through a StringView in this fashion with a for loop. The way C++ for loops
> are written, we can make functions that return objects that use iterators
> like the way we do it in StringView::codeUnits(), although the function does
> not need to be a member of the StringView class. If we package it that way
> then we can write the main body of this as a simple for loop; the iterators
> need know nothing about addNotationFlags.
> 
> Could do one with isHTMLSpace built in, or one that takes a function as an
> argument.