Re: [csswg-drafts] CSS pseudo-selector for h1-h6? (#1008)

> @inoas are there any other HTML tag names, other than H1–6 where a regex-like selector like that would make sense?
> 
> If you're wanting to select tags by partial tag name like that, though CSS selectors won't currently do it, you can do this with XPath using a selector like: `//*[substring-after(name(), "h") > 0]`
> 
> Demo: https://codepen.io/tomhodgins/pen/ybgMpN

Don't work with Selenium :-( 

-- 
GitHub Notification of comment by AndreasKarz
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1008#issuecomment-561596115 using your GitHub account

Received on Wednesday, 4 December 2019 11:04:54 UTC