Libraryless. Click here for Pure Java version (4532L/30K).
// param of opening tag sbool tagHasClass(LS tok, S className) { S c = tagParam(tok, "class"); ret cic(splitAtSpace(c), className); } sbool tagHasClass(S tag, S className) { S c = tagParam(tag, "class"); ret cic(splitAtSpace(c), className); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028647 |
Snippet name: | tagHasClass |
Eternal ID of this version: | #1028647/3 |
Text MD5: | a8c89a75c86410ed259a3c63be8b26eb |
Transpilation MD5: | 7aa6bde1c65e2688479dbf2b2e720d8f |
Author: | stefan |
Category: | javax / html parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-01 17:17:49 |
Source code size: | 260 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 173 / 260 |
Version history: | 2 change(s) |
Referenced in: | [show references] |