I'd like to select a number of elements on a page using document.selectQueryAll()
or element.selectQueryAll()
using a partial name for their attributes.
NOTE: NOT using partial attribute value.
WHY? (You may know a better way to do this using Namespaces directly???)
I want to find all elements where
<div xmlns:${prefix}='{a particular namespace value I know}' >
etc
I want to figure out what the namespace prefix is, for a particular namespace I know I'm looking for, so then I can go search for sub-elements in that particular namespace.
I'd planned to find the element as described above, figure out the namespace, then go look for my sub-elements
querySelectAll( "[typeof='" + ${prefix} + ":" + "Offering" + "'" )
so I can find all sub-elements matching this
<div typeof="gr:Offering">
but I won't know in advance what the XML namespace prefix will be defined to be.