Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1030277 // test_findHTMLTagWithClassDeep (OK)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4831L/32K).

svoid test_findHTMLTagWithClassDeep() {
  S html = [[<div class="blu bla blo"><p class="bla"></p><p /></div><div class="what blablu"></div>]];
  assertEqualsVerbose(
    ll(
      [[<div class="blu bla blo"><p class="bla"></p><p /></div>]],
      [[<p class="bla"></p>]]
    ),
    lmap join(findHTMLTagWithClassDeep("bla", htmlTok(html))));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030277
Snippet name: test_findHTMLTagWithClassDeep (OK)
Eternal ID of this version: #1030277/3
Text MD5: 39b1e982626cf67f6558a4fb481066d2
Transpilation MD5: 9bc57f01c6935bd4211f654e87a832f5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-25 14:24:03
Source code size: 351 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 100 / 152
Version history: 2 change(s)
Referenced in: [show references]