Responding to HTML Changes in a Web Component / / No Comments While driving my kids to school this morning, I had an interesting thought. Is it possible for a web component to recognize, and respond, when its inner DOM contents have changed? Turns out of course it is, and the answer isn’t really depenedant on web components, but is a baked-in part of the web platform, the MutationObserver. Here’s what I built as a way to test it out. The Initial Web Component # I began with a simple web component that had the following simple feature – count the number of images inside it and report. So we can start with this HTML: <img-counter> <p> <img src="https://placehold.co/60x40"> </p> <div> <img src="https://placehold.co/40x40"> </div> <img... more → Posted in: JavaScript Tagged with: changes, Component, HTML, Responding
American StreetCred app helps locate business changes on map – Geospatial World / / No Comments American StreetCred app helps locate business changes on map Geospatial World “map app” – Google News… more → Posted in: Interactive Maps Tagged with: American, Business, changes, Geospatial, helps, locate, StreetCred, World
Apple changes Crimea map to meet Russian demands – BBC News / / No Comments Apple changes Crimea map to meet Russian demands BBC News “map app” – Google News… more → Posted in: Interactive Maps Tagged with: Apple, changes, Crimea, demands, meet, News, Russian
New JavaScript attack infects your phone and changes your router’s DNS settings – Digital Trends / / No Comments Digital Trends New JavaScript attack infects your phone and changes your router's DNS settingsDigital TrendsSecurity firm Trend Micro has discovered an attack on home routers that involves malicious JavaScript, a mobile website, and a mobile device such as a smartphone. This attack has been taking place since December 2015, and so far focuses on Taiwan, …JavaScript-Based Malware Attacks Your Router's DNS SettingsSoftpedia Newsall 3 news articles » JavaScript – Google News… more → Posted in: JavaScript Tagged with: attack, changes, digital, infects, JavaScript, phone, Routers, settings, Trends