René's URL Explorer Experiment


Title: isXMLDoc() - Uncaught TypeError: Cannot read property 'namespaceURI' of undefined · Issue #4782 · jquery/jquery · GitHub

Open Graph Title: isXMLDoc() - Uncaught TypeError: Cannot read property 'namespaceURI' of undefined · Issue #4782 · jquery/jquery

X Title: isXMLDoc() - Uncaught TypeError: Cannot read property 'namespaceURI' of undefined · Issue #4782 · jquery/jquery

Description: Description isXMLDoc() throws an error if undefined given, starting from version 3.4.0 Test script: jQuery.isXMLDoc(undefined) jQuery 3.3.1 result: false jQuery 3.5.1 (currently the latest, but starting from 3.4.0) result: Uncaught TypeE...

Open Graph Description: Description isXMLDoc() throws an error if undefined given, starting from version 3.4.0 Test script: jQuery.isXMLDoc(undefined) jQuery 3.3.1 result: false jQuery 3.5.1 (currently the latest, but sta...

X Description: Description isXMLDoc() throws an error if undefined given, starting from version 3.4.0 Test script: jQuery.isXMLDoc(undefined) jQuery 3.3.1 result: false jQuery 3.5.1 (currently the latest, but sta...

Opengraph URL: https://github.com/jquery/jquery/issues/4782

X: @github

direct link

Domain: redirect.github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"isXMLDoc() - Uncaught TypeError: Cannot read property 'namespaceURI' of undefined","articleBody":"\u003c!--\r\nFeature Requests:\r\n  Please read https://github.com/jquery/jquery/wiki/Adding-new-features\r\n  Most features should start as plugins outside of jQuery.\r\n\r\nBug Reports:\r\n  Note that we only can fix bugs in the latest version of jQuery.\r\n  Briefly describe the issue you've encountered\r\n  *  What do you expect to happen?\r\n  *  What actually happens?\r\n  *  Which browsers are affected?\r\n  Provide a *minimal* test case, see https://webkit.org/test-case-reduction/\r\n  Use the latest shipping version of jQuery in your test case!\r\n  We prefer test cases on JS Bin (https://jsbin.com/qawicop/edit?html,css,js,output) or CodePen (https://codepen.io/mgol/pen/wNWJbZ)\r\n\r\nFrequently Reported Issues:\r\n  * Self-closing tags broken in jQuery 3.5.0 or newer: please read the [jQuery 3.5.0 blog post](https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/) \u0026 the [upgrade guide](https://jquery.com/upgrade-guide/3.5/); see also issue #4681.\r\n--\u003e\r\n\r\n### Description ###\r\n\r\n`isXMLDoc()` throws an error if `undefined` given, starting from version 3.4.0\r\n\r\n#### Test script:\r\n`jQuery.isXMLDoc(undefined)`\r\n\r\n#### jQuery 3.3.1 result:\r\n`false`\r\n\r\n#### jQuery 3.5.1 (currently the latest, but starting from 3.4.0) result:\r\n`Uncaught TypeError: Cannot read property 'namespaceURI' of undefined`\r\n\r\n#### Techinfo\r\n\r\nBefore the **Sizzle** update from 2.3.3 to 2.3.4 (see related commit below), `isXML()` function looked liked this:\r\n```\r\nisXML = Sizzle.isXML = function( elem ) {\r\n\t// documentElement is verified for cases where it doesn't yet exist\r\n\t// (such as loading iframes in IE - #4833)\r\n\tvar documentElement = elem \u0026\u0026 (elem.ownerDocument || elem).documentElement;\r\n\treturn documentElement ? documentElement.nodeName !== \"HTML\" : false;\r\n};\r\n```\r\n\r\nThis **doesn't throw an error**, when the `elem` is `undefined`, because it checks it.\r\n\r\nIn the update from 3.4.0, it looks like this:\r\n```\r\nisXML = Sizzle.isXML = function( elem ) {\r\n\tvar namespace = elem.namespaceURI,\r\n\t\tdocElem = ( elem.ownerDocument || elem ).documentElement;\r\n\r\n\t// Support: IE \u003c=8\r\n\t// Assume HTML when documentElement doesn't yet exist, such as inside loading iframes\r\n\t// https://bugs.jquery.com/ticket/4833\r\n\treturn !rhtml.test( namespace || docElem \u0026\u0026 docElem.nodeName || \"HTML\" );\r\n};\r\n```\r\n\r\nThis **throws an error** when the `elem` is `undefined`:\r\n`Uncaught TypeError: Cannot read property 'namespaceURI' of undefined`\r\n\r\n**Please, if you can, bring back the previous functionality: `undefined` is not an XML node, so it should return a false boolean instead of a TypeError.**\r\n\r\nThanks in advance!\r\n\r\n### Additional info ###\r\n\r\nRelated commit: https://github.com/jquery/jquery/commit/d940bc063cd5ae09bf52067bbe046fda88f1f687 (from line 562)\r\nRelated blog-post: https://blog.jquery.com/2019/04/10/jquery-3-4-0-released/","author":{"url":"https://github.com/borzaka","@type":"Person","name":"borzaka"},"datePublished":"2020-08-29T12:20:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/4782/jquery/issues/4782"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:db88a405-3b9f-0717-1dc5-37069873cc62
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8A6E:3AEBEF:17821CC:2044B81:6A652614
html-safe-noncea395316feda61ffea958e81a34180e12a7d3a52b7cc8c87928d2415686e28697
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTZFOjNBRUJFRjoxNzgyMUNDOjIwNDRCODE6NkE2NTI2MTQiLCJ2aXNpdG9yX2lkIjoiNjI1MTM0ODAxNjYyNzAwMDg1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac38122ff3e9dc44cd2976d8703a59f6ed321c1e4ae982ed16ef97f829e04d9cf7
hovercard-subject-tagissue:688523299
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/jquery/jquery/4782/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6f8dfccc0fa1dcfe3cbcdb5b293dc145ecacc9f7820e066297d0eb1622178dc4/jquery/jquery/issues/4782
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6f8dfccc0fa1dcfe3cbcdb5b293dc145ecacc9f7820e066297d0eb1622178dc4/jquery/jquery/issues/4782
og:image:altDescription isXMLDoc() throws an error if undefined given, starting from version 3.4.0 Test script: jQuery.isXMLDoc(undefined) jQuery 3.3.1 result: false jQuery 3.5.1 (currently the latest, but sta...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameborzaka
hostnamegithub.com
expected-hostnamegithub.com
None52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b
turbo-cache-controlno-preview
go-importgithub.com/jquery/jquery git https://github.com/jquery/jquery.git
octolytics-dimension-user_id70142
octolytics-dimension-user_loginjquery
octolytics-dimension-repository_id167174
octolytics-dimension-repository_nwojquery/jquery
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id167174
octolytics-dimension-repository_network_root_nwojquery/jquery
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release309153364422b3c499922d1a2a6404910a58ed8e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/jquery/jquery/issues/4782#start-of-content
https://redirect.github.com/
Sign in https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjquery%2Fjquery%2Fissues%2F4782
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjquery%2Fjquery%2Fissues%2F4782
Sign up https://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=jquery%2Fjquery
Reloadhttps://redirect.github.com/jquery/jquery/issues/4782
Reloadhttps://redirect.github.com/jquery/jquery/issues/4782
Reloadhttps://redirect.github.com/jquery/jquery/issues/4782
Please reload this pagehttps://redirect.github.com/jquery/jquery/issues/4782
jquery https://redirect.github.com/jquery
jqueryhttps://redirect.github.com/jquery/jquery
Notifications https://redirect.github.com/login?return_to=%2Fjquery%2Fjquery
Fork 20.4k https://redirect.github.com/login?return_to=%2Fjquery%2Fjquery
Star 59.8k https://redirect.github.com/login?return_to=%2Fjquery%2Fjquery
Code https://redirect.github.com/jquery/jquery
Issues 73 https://redirect.github.com/jquery/jquery/issues
Pull requests 21 https://redirect.github.com/jquery/jquery/pulls
Discussions https://redirect.github.com/jquery/jquery/discussions
Actions https://redirect.github.com/jquery/jquery/actions
Wiki https://redirect.github.com/jquery/jquery/wiki
Security and quality 2 https://redirect.github.com/jquery/jquery/security
Insights https://redirect.github.com/jquery/jquery/pulse
Code https://redirect.github.com/jquery/jquery
Issues https://redirect.github.com/jquery/jquery/issues
Pull requests https://redirect.github.com/jquery/jquery/pulls
Discussions https://redirect.github.com/jquery/jquery/discussions
Actions https://redirect.github.com/jquery/jquery/actions
Wiki https://redirect.github.com/jquery/jquery/wiki
Security and quality https://redirect.github.com/jquery/jquery/security
Insights https://redirect.github.com/jquery/jquery/pulse
#4814https://github.com/jquery/jquery/pull/4814
jquery/sizzle#474https://github.com/jquery/sizzle/pull/474
isXMLDoc() - Uncaught TypeError: Cannot read property 'namespaceURI' of undefinedhttps://redirect.github.com/jquery/jquery/issues/4782#top
#4814https://github.com/jquery/jquery/pull/4814
jquery/sizzle#474https://github.com/jquery/sizzle/pull/474
https://redirect.github.com/mgol
Corehttps://github.com/jquery/jquery/issues?q=state%3Aopen%20label%3A%22Core%22
Has Pull Requesthttps://github.com/jquery/jquery/issues?q=state%3Aopen%20label%3A%22Has%20Pull%20Request%22
3.6.0https://github.com/jquery/jquery/milestone/22
https://github.com/borzaka
borzakahttps://github.com/borzaka
on Aug 29, 2020https://github.com/jquery/jquery/issues/4782#issue-688523299
d940bc0https://github.com/jquery/jquery/commit/d940bc063cd5ae09bf52067bbe046fda88f1f687
https://blog.jquery.com/2019/04/10/jquery-3-4-0-released/https://blog.jquery.com/2019/04/10/jquery-3-4-0-released/
mgolhttps://redirect.github.com/mgol
Corehttps://github.com/jquery/jquery/issues?q=state%3Aopen%20label%3A%22Core%22
Has Pull Requesthttps://github.com/jquery/jquery/issues?q=state%3Aopen%20label%3A%22Has%20Pull%20Request%22
3.6.0https://github.com/jquery/jquery/milestone/22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.