Stencil: <input list=*> not parsing correctly

Created on 31 May 2019  路  5Comments  路  Source: ionic-team/stencil

Stencil version:

 @stencil/[email protected] 

I'm submitting a:

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:
<input> list attribute not parsing correctly when inside a Stencil component.

Steps to reproduce:

  • Create a new component library proyect with npm init stencil.
  • Replace MyComponent render() with
render() {
    return (
      <div>
        <input list="list" />
        <datalist id="list">
          <option value="1" />
          <option value="2" />
          <option value="3" />
        </datalist>
      </div>
    );
  }
  • Rendered code will be
    image

Note that list="list" is gone from rendered code.

Other information:

Have tried with both:

  • shadow: true
  • shadow: false

If used inside index.html like this

<body>
  <input list="list" />
  <datalist id="list">
    <option value="1" />
    <option value="2" />
    <option value="3" />
  </datalist>
</body>

Behaviour works as expected

image

OS: macOS Sierra 10.14.5
Browser: Chrome, Firefox, Safari

triage

All 5 comments

Ran into same issue recently.

I can reproduce the issue too

Same here in v1.4.0.

Still an issue as of v1.5.4.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cjorasch picture cjorasch  路  3Comments

harshabonthu picture harshabonthu  路  3Comments

ryanmunger picture ryanmunger  路  3Comments

mitchellsimoens picture mitchellsimoens  路  3Comments

karsvaniersel picture karsvaniersel  路  3Comments