dart-lang / html

Dart port of html5lib. For parsing HTML/HTML5 with Dart. Works in the client and on the server.
https://pub.dev/packages/html
Other
276 stars 58 forks source link

UnimplementedError: ':nth-last-child' selector of type PseudoClassFunctionSelector is not implemented #220

Open zhao004 opened 1 year ago

zhao004 commented 1 year ago

UnimplementedError: ':nth-last-child' selector of type PseudoClassFunctionSelector is not implemented

html: ^0.15.4

Flutter 3.10.5 • channel stable • https://github.com/flutter/flutter.git Framework • revision 796c8ef792 (3 weeks ago) • 2023-06-13 15:51:02 -0700 Engine • revision 45f6e00911 Tools • Dart 3.0.5 • DevTools 2.23.1

How to solve this?

Masood-1 commented 1 year ago

you can't use opreation inside the nth-child selector only number allowed like this tr:nth-child(1) or nth-child(2).
this one not nth-child(5+1) supported yet or any other opreation. However i try the supported selector it seems there is some problem sometime works and sometime not and there is an issue opened from 2018 till now not resolved so try to work around it.