Re: [csswg-drafts] [css-pseudo-5] ::text / ::text-node pseudoelement (#2208)

For me, `::text` isn't explicit about including nodes here.

It should be `::text-node` (texts and nodes).

```html
<span>
    #1 Some 
    #2 <em>simple</em>
    #3 example for 
    #4 <code>::text</code>
    #5 .
</span>
```

`::text` is only this: 

```html
<span>
    #1 Some 
    #X <em>simple</em>
    #2 example for 
    #X <code>::text</code>
    #3 .
</span>
```

And `::node` (like `>`) is only this: 

```html
<span>
    #X Some 
    #1 <em>simple</em>
    #X example for 
    #2 <code>::text</code>
    #X .
</span>
```


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 15 April 2026 21:26:01 UTC