Skip to content

Conversation

@theengineear
Copy link
Collaborator

Changes:

  • Stricter handling of “textarea” binding. Previously we were overly lenient in how the binding worked which caused automagical behavior. For example, newlines were quietly ignored, which could lead to issues if you really wanted newlines in a default value in a text area control and were actually trying to interpolate between lines. Now, it just throws for that case.
  • Spec-compliant attribute traversal. Previously, we relied on the browser convention that attributes in a NamedNodeMap would be iterated over in a particular manner. The spec strictly indicates that this is not to be relied on — so we can oblige.
  • The deprecated plaintext html tag is no longer considered. Use at your own peril…
  • General improvements to inline documentation and naming of things.

Changes:
* Stricter handling of “textarea” binding. Previously we were overly
  lenient in how the binding worked which caused automagical behavior.
  For example, newlines were quietly ignored, which could lead to issues
  if you really _wanted_ newlines in a default value in a text area
  control and were actually trying to interpolate between lines. Now, it
  just throws for that case.
* Spec-compliant attribute traversal. Previously, we relied on the
  browser convention that attributes in a NamedNodeMap would be iterated
  over in a particular manner. The spec strictly indicates that this is
  not to be relied on — so we can oblige.
* The deprecated `plaintext` html tag is no longer considered. Use at
  your own peril…
* General improvements to inline documentation and naming of things.

it('throws when attempting non-trivial interpolation of a title tag', () => {
const getTemplate = ({ content }) => {
return html`<title id="target">please ${content} no</title>`;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We used to allow this sort of thing! Definitely not what we want.

@theengineear
Copy link
Collaborator Author

FYI @klebba — just a quick follow up. Nothing too crazy in here, mostly just some minor amendments to the prior #206 PR.

@theengineear theengineear merged commit f920e80 into main Nov 16, 2024
1 check passed
@theengineear theengineear deleted the ready-2x-interface branch November 16, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants