Skip to content
#

standard

Here are 587 public repositories matching this topic...

fred-wang
fred-wang commented Aug 5, 2020

cc @mikewest @annevk @ericlaw1979

From https://html.spec.whatwg.org/multipage/system-state.html#normalize-protocol-handler-parameters:

'If the resulting URL record's scheme is not "https" or the resulting URL record's origin is not same origin with environment's origin, then throw a "SecurityError" DOMException.'

It seems this forbids localhost URLs like http://127.0.0.1 that are in a se

azu
azu commented Sep 2, 2020

What should be the result of new url("#")?
Browsers return different results.

In my understanding is that new url("#") should throw a validation error.

  1. scheme start state
    1. [skip] If c is an ASCII alpha, append c, lowercased, to buffer, and set state to scheme state.
    2. [match] Otherwise, if state override is not given,

Improve this page

Add a description, image, and links to the standard topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the standard topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.