Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid document plugin problem on XHTML documents
jQuery will choke if the img tag isn't closed.
- Loading branch information
d2f8c43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eek, really? jQuery throws an error if you add an element to the DOM for an XHTML document?
d2f8c43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. When running on an XHTML document (maybe only strict mode), the tag must be closed or creating the fragment is an error. That's in chrome, at least.
d2f8c43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@edsu, I have already pinged you about this problem. See original report, and my fix here:
https://github.com/hypothesis/annotator/commit/423e6d14d1e72de7050fa1d7b3442d1a0213014f
d2f8c43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be a self-closing tag (
<img ... />
) not a tag pair?d2f8c43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my implementation (referenced above), it was, but I guess this works, too.
d2f8c43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.