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

AXRDocument should provide methods to access loaded URLs #206

Open
jakepetroules opened this issue Nov 29, 2012 · 0 comments
Open

AXRDocument should provide methods to access loaded URLs #206

jakepetroules opened this issue Nov 29, 2012 · 0 comments
Milestone

Comments

@jakepetroules
Copy link
Contributor

Currently an AXRDocument is composed of an XML file (which may be in-memory) as well as other HSS stylesheet files, and in future, JavaScript files.

AXRDocument needs to provide methods for users to access the AXRController and URL of its main file, as well as all "sub-files" that are part of that document.

For example:

  • AXRDocument::controller() // controller for the main XML, may or may not be in-memory
  • AXRDocument::url() // URL for the main XML, may be a null URL for an in-memory file
  • AXRDocument::stylesheetControllers() // list of controllers for associated HSS stylesheets
  • AXRDocument::scriptControllers() // list of controllers for associated JS scripts

AXRController should probably keep track of the URL (then we can iterate the return value of stylesheetControllers() and easily get all the URLs).

Finally, we'll need events that fire when controllers are added/removed, etc.

See also: axr/browser#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant