‘; var storytext = document.getElementById(‘storytext’); var heightToSkip = 0; function resetValues() { totalHeight = 0; targetChildElement = null; } if(storytext == null) { console.log(“Error finding storytext element for SA embed”); return; } for ( i = 0; i 0) { heightToSkip -= storytext.childNodes[i].clientHeight; resetValues(); } else if(heightToSkip minHeight && targetChildElement != null) { //console.log(“total height = ” + totalHeight); //console.log(“childNode = ” + targetChildElement); storytext.childNodes[targetChildElement].insertAdjacentHTML(‘afterend’, smartAssetDiv); smartasset = document.getElementById(‘smartasset-article’); smartasset.style.float = ‘left’; // allows module to have text float to right smartasset.style.marginRight =’20px’; smartasset.style.marginBottom =’25px’; //console.log(storytext.childNodes[targetChildElement]); //SMARTASSET.setDivIndex(targetChildElement); SMARTASSET.setSmartAssetScript(); /* bail out since we’re done */ break; } } /* div with id=”smartassetcontainer”. Sanity check to only embed once */ else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘div’ && storytext.childNodes[i].id !== “undefined” && storytext.childNodes[i].id === “smartassetcontainer”) { break; } /* div with id=”ie_column” */ else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘div’ && storytext.childNodes[i].id !== “undefined” && storytext.childNodes[i].id === “ie_column”) { resetValues(); } /* embeds from twitter, facebook, youtube */ else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘div’ && storytext.childNodes[i].classList.contains(’embed’)) { resetValues(); } /* cnn video player */ else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘div’ && storytext.childNodes[i].classList.contains(‘cnnplayer’)) { resetValues(); } /* images */ else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘img’) { resetValues(); } /* images stored in figure tags */ else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘figure’) { if(storytext.childNodes[i].clientWidth
The milestone means the Nasdaq has completely recovered from a momentum-driven selloff that began last month. In fact, the Nasdaq is now up a very strong 18% so far this year, nearly doubling the other major indexes.
The Nasdaq record also shows how the stock market is mostly shrugging off the latest drama in D.C. The S&P 500 narrowly notched an all-time high of its own on Tuesday, while the Dow dipped modestly lower by slumping Goldman Sachs. (GS)
Clearly, the collapse of the Senate GOP’s bill to repeal and replace Obamacare hasn’t spooked investors. The health care sector of the S&P 500 managed to eke out a minor gain on Tuesday.
Many on Wall Street hope the health care failure will force the White House and Congress to quickly pivot to taxes, although that’s no easy task either.
Related: Netflix surges on strong subscriber growth
Market sentiment remains upbeat, with CNNMoney’s Fear & Greed index sitting comfortably in “greed” mode.
Greed has been very good to the Nasdaq this year. The index has hit 39 different record highs in 2017, and 47 since President Trump’s election, according to LPL Financial.
Netflix was front in center of the latest tech rally, spiking nearly 14% to a record high thanks to strong subscriber growth.
Facebook (FB, Tech30), Apple (AAPL, Tech30) and Google parent Alphabet (GOOGL, Tech30) — the other three members of the “FANG” club of tech darlings — all advanced.
So will the Trump rally keep going despite the turbulence in Washington?
With the fate of the Trump economic agenda in doubt, the key will be whether Corporate America can keep growing profits at a healthy clip.
CNNMoney (New York) First published July 18, 2017: 4:55 PM ET