Get rid of the Element class
See original GitHub issueThe Element
class is just used for testing. By using Element
we are not testing the actual code. Also, every time we implement a new feature for the Feature
class, we need to implement it for Element
as well. I think it would be a better idea to use real classes for testing and get rid of Element
. We could start by substituing it by number, which should be straighforward. Although I think it could be a good idea to add some more tests for the different Feature
classes.
Related to https://github.com/fireeye/capa/issues/5, as it symplifies the implementation.
@mr-tz @williballenthin what do you think?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
How To Remove a Class Name
Learn how to remove a class name from an element with JavaScript. Remove Class. Click the button to remove a class from me!...
Read more >Removing elements by class name? - javascript
Get container element by ID. Get needed child elements by tag name. Iterate over children, test for matching className property. elements[i].
Read more >Remove all elements with specific Class using JavaScript
To remove all elements with a specific class, use the `document.querySelectorAll()` method to select the elements by class. Use the `forEach()` method to ......
Read more >How to remove a class name from an element through ...
JavaScript can be used to remove a class name from an HTML element on a webpage with the help of the .classList.remove(). It...
Read more >How to Remove All Classes From an Element With ...
To remove all classes from an element in JavaScript, set the className property of the element to an empty string ( '' ),...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
if you want to remove element and use another simple feature, like
Number
, in its place, that’s fine with me, too.I think it can be removed and we can replace the tests. Unless @williballenthin had something different in mind for it?!