Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow lowercase <iframe> tags for XHTML complience #67

Merged
merged 1 commit into from
Jun 30, 2014
Merged

Allow lowercase <iframe> tags for XHTML complience #67

merged 1 commit into from
Jun 30, 2014

Conversation

SlimerDude
Copy link
Contributor

In HTML element.tagName is returned in upper-case, but in XHTML it is returned as it is defined in the document.

As XHTML pages are required to have their element names in lower case, as per the W3C XHTML Spec, the current code doesn't work in XHTML.

I'm not being pedantic and I don't mean to enforce a style choice either, it's just that browsers do not recognise the tag <IFRAME> when the page is served as XHTML.

Kudos for using the AMD define() though! Thanks!

In HTML `element.tagName` is returned in upper-case, but in XHTML it is returned [as it is defined in the document](https://developer.mozilla.org/en-US/docs/Web/API/Element.tagName#Notes).

As XHTML pages are required to have their element names in lower case, as per the [W3C XHTML Spec](http://www.w3.org/TR/xhtml1/#h-4.2), the current code doesn't work in XHTML.


I'm not being pedantic and I don't mean to enforce a style choice either, it's just that browsers do not recognise the tag <IFRAME> when the page is served as XHTML.
davidjbradshaw added a commit that referenced this pull request Jun 30, 2014
Allow lowercase <iframe> tags for XHTML complience
@davidjbradshaw davidjbradshaw merged commit f435b57 into davidjbradshaw:master Jun 30, 2014
@davidjbradshaw
Copy link
Owner

Thanks for the fix.

@SlimerDude SlimerDude deleted the patch-1 branch June 30, 2014 14:27
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