[whatwg] URL: Parsing URLs without relative scheme

2012-11-04 Thread Anne van Kesteren
Do we want to support parsing the query component of URLs without
relative scheme (such as mailto/javascript) into a separate entity or
just treat it as part of what the specification now calls "scheme
data". What this affects:

* We could more easily treat about:blank?test equal to about:blank
with a query component. Only WebKit does not support this.
* javascript: would consist of scheme data + query + fragment rather
than just scheme data + fragment
* data: would consist of scheme data + query rather than just scheme data
* The API (we should probably just allow manipulation for URLs with
relative scheme for now)

Spec: http://url.spec.whatwg.org/


-- 
http://annevankesteren.nl/


Re: [whatwg] Question on Limits in Adaption Agency Algorithm

2012-11-04 Thread Yasuhiko Minamide

> The DOM you get when you hit the limits in the adoption agency
> algorithm don't make a lot of intuitive sense.  Unfortunately, the
> limits are necessary so that implementations don't end up having to do
> quadratic work.  If this behavior is causing you trouble, you might

I'm wondering whether the adoption agency algorithm without the limits
really has a quadratic complexity (with respect to the size of the stack). 

Even if we do not impose a limit on the inner loop, each node in the
stack of open elements is processed at most once.

- The inner loop processes the nodes between the formatting element
  and the furthest block.
- Then, the formatting element is moved below the furthest block.

Then, the nodes above the furthest block will not be processed anymore.

If we do not impose the limit on the outer loop, the step 4 may cause
the quadratic behaviour. However, I think that it can be avoided by
slightly revising the algorithm.

I'm working on the automated test generation for the HTML5 parser 
specification and had the question when we try to understand the 
specification precisely.

Yasuhiko Minamide