Navigate a rootless dom with JQuery

Given this html string: var string = "<div></div><p></p>"; I create a jQuery object with it: var dom = $(string); Is there any chance to use selectors to point to one of its tag? Without embed it all in a newly created o...
more »

2017-01-19 17:01 (3) Answers

NodeJS can't stock $(this).outerText into a var

My problem is simple: In my nodeJS app, when I do "console.log(res.text() + "\n");" it works very well, but when I put the result in a var like "s" or "tmp[i]", then I show it up the result is "undefined". And I really can't understand this result.....
more »

2017-01-19 16:01 (0) Answers

Tool to identify a missing tag for an HTML element

As part of the WebPage automation, I'm looking to ensure development team is adding a ID tag with unique value for each of the web element, so that, the automation team can create a easily maintainable object repository. In this context, was looking...
more »

2017-01-19 14:01 (0) Answers

JQuery not filtering DOM changes

I have a questionnaire page and some div have a data-answered attribute added to them like this: <div class="question" data-answered="False"> ... rest of the html </div> now I have several of those and at some point, through js (you...
more »

2017-01-19 06:01 (3) Answers

getTextContent on xml node returning an exception

I am trying to get the content of an xml node, but this is what I get as output : Exception in thread "main" java.lang.AbstractMethodError: org.apache.xerces.dom.DeferredElementImpl.getTextContent()Ljava/lang/String; at cities2.main(
more »

2017-01-19 01:01 (1) Answers

What is the semantics of the html element?

Recently I've dived deeper into web technologies and the good old HTML. I was surpised by the central role of the html element in rendering (e.g. it has a width and a height) hence a visual semantics. I thought html was only the root of the HTML do...
more »

2017-01-18 11:01 (1) Answers

Framework7 DOM Manipulation

I'd like to reconfigure or change the way Framework7 uses the DOM. Preferably so it does not inject the code of said pages into the already loaded DOM. Is there a way I can go about doing this? I enjoyed JQueryMobile and how it differed from the way ...
more »

2017-01-17 22:01 (0) Answers

DOM getFirstChild() throws nullpointer exception

1) Document localDocument1 = DocumentBuilder . newDocument(); 2) localDocument1 . appendChild(........); 3) localDocument1.getFirstChild()..... After execution appendChild method at line 2, It is throwing nullpointer exception at line 3. in my a...
more »

2017-01-17 12:01 (0) Answers

SVG transform rotate just works in FF

I need to rotate a SVG with javascript , i can do it in Firefox with this code : <button onclick="document.getElementById('mySVG').setAttribute('transform','rotate(30,20,20)');">rotate It</button> <svg id="mySVG" viewBox="0 0 24 24" w...
more »

2017-01-17 11:01 (1) Answers

Setting screenX, screenY on triggered MouseEvent?

I'm triggering a mousedown event on a certain DIV which verifies the screenX and screenY of the mouse. Currently, both are passed as 0 in default mode. Is there any way to change/set custom screenX/screenY value of a programmatically triggered moused...
more »

2017-01-17 06:01 (0) Answers