Skip to content

Conversation

@jonathansampson
Copy link
Contributor

Unknown attributes, such as t, are not able to be set with innerHTML
in Windows Web Apps. These must be set on elements via setAttribute
instead.

Historical context:

Unknown attributes, such as `t`, are not able to be set with innerHTML
in Windows Web Apps. These must be set on elements via setAttribute
instead.
jonathansampson added a commit to jonathansampson/jquery that referenced this pull request Mar 11, 2014
src/sizzle.js Outdated
Copy link
Member

Choose a reason for hiding this comment

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

I'd much rather see t renamed to something like class or title than suffer the increased size here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wasn't the purpose of t to trigger invalid attribute in XHTML? I assumed that much, which is why I didn't touch it. If that is not the case, I agree - more concise code here would be better.

If we don't need the t attribute, we could otherwise leave this code as-is using the straight-forward string assignment via innerHTML.

Copy link
Member

Choose a reason for hiding this comment

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

No; we just need an attribute for the following ^='' test to detect and work around the IE8 & Opera 10-12 bugs.

Removing invalid attribute `t` which may cause security issues for some
environments.
@jonathansampson
Copy link
Contributor Author

Used a standard attribute class rather than a non-standard attribute t, since the latter wasn't crucial to the test to begin with and has potential to cause security issues in some environments.

@timmywil timmywil closed this in a64d52a Mar 17, 2014
@dmethvin
Copy link
Member

Looks like Sizzle didn't get updated? I don't see this commit in beta1. We're missing several commits, the Sizzle in the beta is from 2014-02-05.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants