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

<h1>,<h2>,<h3> in templates cause "unspecified" error in i.e. 7. #3

Closed
GoogleCodeExporter opened this issue Mar 4, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create an ejs template that uses the [%%] style tags
2. add an <h3> (or any heading tag 1-5) to the template
3. render template

What is the expected output? What do you see instead?
internet explorer gives "unspecified error".  FF/chrome/safari all fine.

What version of the product are you using? On what operating system?
1.0 on PC/internet explorer, and Mac safari/ff/chrome

I have verified, definitively that explorer can't render ejs templates that
include heading tags with numbers in them (i.e. h1, h2, etc.)  working
around by using custom p tags.

Original issue reported on code.google.com by ReadySet...@gmail.com on 8 Mar 2010 at 8:05

@GoogleCodeExporter
Copy link
Author

Have you tried closing the tags?  I'm pretty sure if you insert correct HTML, 
it should 
work.

Marking it as WontFix until I hear back.

Original comment by JustinBMeyer@gmail.com on 12 Mar 2010 at 3:21

  • Changed state: WontFix

@GoogleCodeExporter
Copy link
Author

I can confirm this behavior.  With both an opening and closing header tag (and 
nothing else in the template) I receive an "Unknown runtime error" in IE 7.  
This is the content of my ejs file:

 <h1>fail</h1>

I'll poke around a bit more. The line given is 120 when setting the 
element.innerHTML (I verified the render works correctly).  As a matter of fact 
simply setting the innerHTML to:
  <h1>fail</h1>  
as a hard coded string with an emplate template will cause the same error.

Apparently IE7 doesn't like the H1 tag inside of a DIV tag.  If you change the 
target render area to be (for example) the body tag itself, then everything 
works... since the body tag is obviously allowed to have h1 tags in it.

Not as useful as targetting a div, and as far as I knew divs can contain h1 
tags.

Original comment by ackl...@gmail.com on 4 Jan 2012 at 9:36

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

No branches or pull requests

1 participant