Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cohost2autost: saw attributes not on known-good-attributes list! #26

Open
delan opened this issue Dec 18, 2024 · 0 comments
Open

cohost2autost: saw attributes not on known-good-attributes list! #26

delan opened this issue Dec 18, 2024 · 0 comments

Comments

@delan
Copy link
Owner

delan commented Dec 18, 2024

cohost2autost converts chosts from json to html, but this comes with a few challenges.

some html attributes need to be renamed from their dom or react names to their html names, like ariaDescribedByaria-describedby. some attributes have unusual formats in the dom or react that need extra code to convert to html, like className array → class string. some attributes may contain attachment links, which we want to archive and rewrite to point to the archived version.

none of those challenges are solved with 100% accuracy yet, because the code for them is incomplete, so we have a list of known-good attributes that are guaranteed to be handled correctly. we log a warning when we see any attribute not on that list, because the autost post may be incorrect for them.

note that only the attachment links have potential for permanent data loss when cohost goes down. all of the other challenges can be fixed after cohost goes down, by rerunning cohost2autost.

  • <a alt>
  • <a rel>
  • <bdo dir>
  • <blockquote cite>
  • <div alt>
  • <div ariaDescribedBy>
  • <div ariaLabelledBy>
  • <div class>
  • <div dir>
  • <div height>
  • <div lang>
  • <div type>
  • <div width>
  • <figure ariaDescribedBy>
  • <h1 align>
  • <img align>
  • <img ariaDescribedBy>
  • <img hSpace>
  • <img isMap>
  • <img useMap>
  • <input checked>
  • <input readOnly>
  • <li class>
  • <math display>
  • <math xmlns>
  • <menclose notation>
  • <mi mathvariant>
  • <mo fence>
  • <mo lspace>
  • <mo movablelimits>
  • <mo rspace>
  • <mo separator>
  • <mo stretchy>
  • <mpadded voffset>
  • <mspace width>
  • <mstyle displaystyle>
  • <mstyle mathsize>
  • <mstyle scriptlevel>
  • <mtable displaystyle>
  • <mtable rowspacing>
  • <ol type>
  • <p dir>
  • <p lang>
  • <span ariaDescribedBy>
  • <span class>
  • <span dateTime>
  • <span lang>
  • <span name>
  • <table align>
  • <table border>
  • <table cellPadding>
  • <table cellSpacing>
  • <table width>
  • <td colSpan>
  • <td height>
  • <td lang>
  • <td rowSpan>
  • <td vAlign>
  • <td width>
  • <th colSpan>
  • <th scope>
  • <th width>
  • <time dateTime>
  • <time dir>
  • <time lang>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant