I have submitted a patch for review that I believe provides the functionality you requested to support the Foreground skin: https://gerrit.wikimedia.org/r/#/c/168019/. There is now a configuration variable $TitleIcon_CSSSelector that defaults to "#firstHeading" but can be changed to ".title" to support Foreground. I tested on one of my wikis using a div, and it appears to work. Could you please test with Foreground and let me know if it works for you? If it does, could you please review and +1 the change in gerrit at the link provided above? Once I receive confirmation from you, I will merge the change and update the documentation. (The patch also includes some modifications that do not affect the functionality that make it conform more closely to MediaWiki coding style guidelines.)
I have gone back and forth on whether to add the properties automatically, but there are arguments on both sides, and I have so far decided not to do so.
We are preparing to release several new extensions in the next few weeks, including an extension that displays an interactive network graph of wiki page linkages and an extension for rendering, editing, and selecting from wiki page hierarchies. We will probably also be releasing a pluggable authentication/authorization extension supporting OpenID Connect and SimpleSAML.
This post was posted by 128.29.43.2, but signed as Cindy.cicalese.