Skip to content

Misc: Update isXML to recognize HTML-embedded elements#436

Closed
gibson042 wants to merge 2 commits intojquery:masterfrom
gibson042:gh-378-isXML
Closed

Misc: Update isXML to recognize HTML-embedded elements#436
gibson042 wants to merge 2 commits intojquery:masterfrom
gibson042:gh-378-isXML

Conversation

@gibson042
Copy link
Member

Fixes gh-378

@@ -559,10 +560,13 @@ support = Sizzle.support = {};
* @returns {Boolean} True iff elem is a non-HTML XML node
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we could go ahead and fix this typo, iff you want.

Copy link
Member Author

Choose a reason for hiding this comment

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

What typo? Do you think we should replace "iff" with "if and only if"?

Copy link
Member

@timmywil timmywil Dec 4, 2018

Choose a reason for hiding this comment

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

I didn't know that's what it meant. It's been a long time since I did proofs. I remember using "↔" but not "iff".

Copy link
Member

Choose a reason for hiding this comment

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

BTW, while I've used this notation repeatedly I'd guess it's not common knowledge among programmers without theoretical background. Expanding that could increase intelligibility of the comment to the general public.

@mgol mgol closed this in 26a1f3f Jan 14, 2019
mgol added a commit to mgol/jquery that referenced this pull request Jul 18, 2019
This commit also backports some jQuery.isXMLDoc tests from master so that this
behavior doesn't regress.

(partially cherry-picked from 79b74e0)

Ref jquery/sizzle#378
Ref jquery/sizzle#436
mgol added a commit to jquery/jquery that referenced this pull request Jul 29, 2019
This commit also backports some jQuery.isXMLDoc tests from master so that this
behavior doesn't regress.

(partially cherry-picked from 79b74e0)

Closes gh-4438
Ref jquery/sizzle#378
Ref jquery/sizzle#436
@mgol mgol added this to the 2.3.4 milestone Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Sizzle.isXML misidentifies embedded SVG

4 participants