adobe / htl-spec

HTML Template Language Specification
Apache License 2.0
280 stars 146 forks source link

Some examples from the URI manipulation section are not correct #43

Closed raducotescu closed 7 years ago

raducotescu commented 7 years ago

The following examples are incorrect:

  1. example.com is not a valid domain in this context:
    ${'example.com/path/page.html' @ scheme='http'}
    <!-- outputs: http://example.com/path/page.html -->
  2. selectors should not be merged, but rather appended
    
    ${'path/page.woo.foo.html' @ addSelectors='foo.bar'}
    <!-- outputs: path/page.woo.foo.bar.html -->

${'path/page.woo.foo.html' @ addSelectors=['foo', 'bar']}