Skip to content

Conversation

@slashrsm
Copy link

ESI spec allows comment wrapped ESI tags (i.e. ""), which are ignored by jquery.esi.js. Added support for them.

Spec: http://www.w3.org/TR/esi-lang

ESI spec allows comment wrapped ESI tags (i.e. "<!--esi ... -->"), which are ignored by jquery.esi.js. Added support for them.
jquery.esi.js Outdated
Copy link
Owner

Choose a reason for hiding this comment

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

It looks like the value 8 has a corresponding named constant COMMENT_NODE ( see http://www.w3schools.com/jsref/prop_node_nodetype.asp ). Could you check if the constant also works correctly in your use-case?

Copy link
Author

Choose a reason for hiding this comment

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

Unfortunately it does not. I tried it in Chromium 29.0.1547.65 (Ubuntu 13.10) and Firefox 24.0.

@slashrsm
Copy link
Author

Do you need any more clarifications about this?

…utside iframes on page.

iframes that pull content from other URLs can cause errors like this:

"Blocked a frame with origin "http://web1.dev.examiner.com" from accessing a frame with origin "http://www.facebook.com". The frame being accessed set "document.domain" to "facebook.com", but the frame requesting access did not. Both must set "document.domain" to the same value to allow access."

There is no point in looking for esi tags inside iframes anyway so let's exclude them.
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