Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document.getElementById incorrect #182

Open
RedBull996 opened this issue Jun 26, 2022 · 0 comments
Open

document.getElementById incorrect #182

RedBull996 opened this issue Jun 26, 2022 · 0 comments
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@RedBull996
Copy link

RedBull996 commented Jun 26, 2022

String htmlStr =
      "<div class='r'><span style = 'margin-left: 20px; font-family: math;color: #949494;'>系统使用</span></div><div class='r_content'><div class='margin-left-10'><span>1. 系统使用的怎么样?</span></div><div class='margin-left-10'><span class='input_content'><input type = 'radio' class='input' id='-531019543-0' name='-531019543' /><label for='-531019543-0'>好</label></span><span class='input_content'><input type = 'radio' class='input' id='-531019543-1' name='-531019543' /><label for='-531019543-1'>不好</label></span><span class='input_content'><input type = 'radio' class='input' id='-531019543-2' name='-531019543' /><label for='-531019543-2'>很不好</label></span></div></div><div class='r_content'><div class='margin-left-10'><span>2. 这里是问题?</span></div><div class='margin-left-10'><span class='input_content'><input type = 'checkbox' class='input' id='425861987-0' name='425861987' /><label for='425861987-0'>设置</label></span><span class='input_content'><input type = 'checkbox' class='input' id='425861987-1' name='425861987' /><label for='425861987-1'>shejie</label></span><span class='input_content'><input type = 'checkbox' class='input' id='425861987-2' name='425861987' /><label for='425861987-2'>shengdao</label></span></div></div><div class='r'><span style = 'margin-left: 20px; font-family: math;color: #949494;'>系统评价</span></div><div class='r_content'><div class='margin-left-10'><span>3. 评价一下下?</span></div><div class='margin-left-10'><textarea class='margin-left-10 mar_top_8' cols='2'  rows='3' id='920053640' name='920053640' style='width: 90%;'></textarea></div></div>";
  late dom.Document document;

  void parseHtml() {
    dom.Document document = htmlparser.parse(htmlStr);
    var el = document.getElementById("-531019543-1");
  }
@devoncarew devoncarew added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants