You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
Maybe I wasn't clear. In 1.0.1 you do use script.text, but this fails for XHTML. You could use innerHTML for XHTML and get the full content (at least on Google Chrome).
I'll leave it to you to test IE.
IgorMinar
added a commit
to IgorMinar/angular.js
that referenced
this issue
Aug 30, 2012
it turns out that some stuff doesn't work in xhtml as it does in html.
for example can't be innerHTML-ed and auto-closing of elements
doesn't work.
the reporter of the referenced issue claimed that innerHTML vs text on
script made a difference but that doesn't appear to be true in my testing.
I'm not including test for this because testacular doesn't currently
run tests in xhtml yet.
Closesangular#1301
it turns out that some stuff doesn't work in xhtml as it does in html.
for example can't be innerHTML-ed and auto-closing of elements
doesn't work.
the reporter of the referenced issue claimed that innerHTML vs text on
script made a difference but that doesn't appear to be true in my testing.
I'm not including test for this because testacular doesn't currently
run tests in xhtml yet.
Closes#1301
When in an XHTML document, all markup is removed from inlined templates.
See http://plnkr.co/edit/3hRDtK?p=preview
Reason: you use 'script.text' instead of 'script.innerHTML' to extract the template body.
The text was updated successfully, but these errors were encountered: