mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Use stricter binding parsing for efficiency and correctness. Fixes #2705.
This commit is contained in:
@@ -26,9 +26,14 @@
|
||||
no-computed="{{foobared(noInlineComputed)}}"
|
||||
compoundAttr1$="{{cpnd1}}{{ cpnd2 }}{{cpnd3.prop}}{{ computeCompound(cpnd4, cpnd5, 'literal')}}"
|
||||
compoundAttr2$="literal1 {{cpnd1}} literal2 {{cpnd2}}{{cpnd3.prop}} literal3 {{computeCompound(cpnd4, cpnd5, 'literal')}} literal4"
|
||||
compoundAttr3$="{{computeCompound('world', 'username ', 'Hello {0} ')}}"
|
||||
compoundAttr3$="[yes/no]: {{cpnd1}}, {{computeCompound('world', 'username ', 'Hello {0} ')}}"
|
||||
>
|
||||
Test
|
||||
<!-- Malformed bindings to be ignored -->
|
||||
{{really.long.identifier.in.malformed.binding.should.be.ignored]}
|
||||
{{computeFromLiterals(3, 'really.long.literal.in.malformed.binding.should.be.ignored)]}
|
||||
<!-- Should still parse -->
|
||||
{{computeFromLiterals(3, 'foo', bool)}}
|
||||
</div>
|
||||
<x-prop id="boundProps"
|
||||
prop1="{{cpnd1}}{{ cpnd2 }}{{cpnd3.prop}}{{ computeCompound(cpnd4, cpnd5, 'literal')}}"
|
||||
|
||||
Reference in New Issue
Block a user