Skip to content

Upgrading soupsieve 3 to 4

Breaking3.0.4 → 4.0.1Breaking2New1Fixed39

BreakingUpgrade verdict

2 breaking changes.

  • Selectors no longer look inside HTML template elements, and elements inside a template cannot see outside it.
  • Elements inside an iframe are now normal children, so :root and several pseudo-classes treat them like any other element.
2 items need code or config changes
Breaking2
The contents of an HTML template are no longer treated as part of the document for selector matching.
selectfilter:lang():disabled:default
The contents of an iframe are no longer treated as a separate document.
:root:default:indeterminate:checked:dir():lang():read-write:-soup-contains()